//
//  JCReportModel.h
//  SquashSpark
//
//  Created by 郭吉成 on 2017/11/30.
//  Copyright © 2017年 Coollang-YF. All rights reserved.
//

#import <Foundation/Foundation.h>
@class JCReportListModel;
@class JCReportWeekTotalModel;

/**
 运动报告详细数据
 */
@interface JCReportModel : NSObject

@property (nonatomic, strong) NSMutableArray <JCReportListModel *> *dailyModels;
@property (nonatomic, strong) JCReportWeekTotalModel *weekTotalModel;
@property (nonatomic, strong) JCReportWeekTotalModel *lastWeekTotalModel;
+ (JCReportModel *)creatReportDetailModelWith:(NSDictionary *)sourceDic;

@end







/**
 运动报告详细数据
 */
@interface JCReportWeekTotalModel : NSObject

@property (nonatomic, strong) NSString *duration;
@property (nonatomic, strong) NSString *swings;
@property (nonatomic, strong) NSString *caroline;
@property (nonatomic, strong) NSString *avgDuration;
@property (nonatomic, strong) NSString *avgSwings;
@property (nonatomic, strong) NSString *avgCaroline;

+ (JCReportWeekTotalModel *)creatReportTotalModelWith:(NSDictionary *)sourceDic;

@end







/**
 运动报告列表模型
 */
@interface JCReportListModel : NSObject

@property (nonatomic, strong) NSString *duration;
@property (nonatomic, strong) NSString *swings;
@property (nonatomic, strong) NSString *caroline;
@property (nonatomic, strong) NSString *maxSpeed;
@property (nonatomic, strong) NSString *year;
@property (nonatomic, strong) NSString *yearWeek;
@property (nonatomic, strong) NSString *week;
@property (nonatomic, strong) NSString *date;
@property (nonatomic, strong) NSMutableArray <JCReportListModel *> *dailyModels;

+ (NSArray <JCReportListModel *> *)creatReportListWithSource:(NSDictionary *)sourceDic;
+ (JCReportListModel *)creatDailyModelWithDic:(NSDictionary *)sourceDic;
+ (JCReportListModel *)creatClearModel;

@end
